﻿<UserControl x:Class="TZUserControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="303" d:DesignHeight="392.965">

    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
    	<DockPanel Height="Auto" Width="Auto" LastChildFill="True" MinWidth="300" MinHeight="350">
    		<Grid x:Name="grid" VerticalAlignment="Stretch" Width="Auto" Height="Auto">
    			<Grid.RowDefinitions>
    				<RowDefinition Height="*" />
    				<RowDefinition Height="*" />
    			</Grid.RowDefinitions>
    			<Grid.ColumnDefinitions>
    				<ColumnDefinition Width="*"/>
    			</Grid.ColumnDefinitions>
                <StackPanel Orientation="Vertical">
                    <Label Content="Last latitude:" FontWeight="bold"/>
                    <TextBlock Margin="10,0,10,0" Text="{Binding Path=LastDataReport.Latitude}" />
                    <Label Content="Last longitude:" FontWeight="bold"/>
                    <TextBlock Margin="10,0,10,0" Text="{Binding Path=LastDataReport.Longitude}" />
                </StackPanel>
                <StackPanel Margin="10,10,10,10" Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom">
    				<Button x:Name="btnSave" Width="80" Content="Save"/>
    				<Button x:Name="btnCancel" Width="80" Content="Cancel"/>
    			</StackPanel>
            </Grid>
    	</DockPanel>
    </ScrollViewer>
</UserControl>